/* import React from 'react'; */
import Taro from '@tarojs/taro'
import { View, Video, Button} from '@tarojs/components'
import NavBar from '../../components/topbar/topbar'
import './home.scss'

function Home () {

  const handleClick = () => {
    Taro.navigateTo({
      url: '/pages/firstPage/firstPage'
    })
  }

  return (
    <View>
      <NavBar title="快乐宝贝"/>
        <Video
          id='video' className="video"
          src='https://6763-gcxyup-9gzg5uqx2884e5f1-1310436931.tcb.qcloud.la/video-output-0033FF19-9067-429C-AA8A-81AE0252A097.MP4?sign=17755834e3933edb7a314463bf4d8995&t=1651143132'
          // poster='https://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
          // initialTime='0'
          // controls={true}
          autoplay
          onEnded={handleClick}
          // loop={false}
          // muted={false}
        />
        <Button className="button" onClick={handleClick}>跳过</Button>
    </View>
  )
}
export default Home
